# coding=utf-8
from test.common.page import Page


class UserLoginPage(Page):
    def login(self, user_name, pass_word):
        """
            登录函数
        """
        self.find_element_by_xpath("//*[@id='username']").send_keys(user_name)
        self.find_element_by_xpath("//*[@id='password']").send_keys(pass_word)
        self.find_element_by_xpath("//a[@id='login-btn']").click()
